//
//  CinemaTableViewCell.m
//  UITalbeview周六作业
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell

- (void)dealloc{
    [_imageback release];
    [_lable1 release];
    [_lable2 release];
     [_lable3 release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}

- (void)create{
    self.imageback = [[UIImageView alloc] init];
    [self.contentView addSubview:_imageback];
    [_imageback release];
    
    self.lable1 = [[UILabel alloc] init];
    [self.imageback addSubview:_lable1];
    [_lable1 release];
    
    self.lable2 = [[UILabel alloc] init];
    [self.imageback addSubview:_lable2];
    [_lable2 release];
    
    self.lable3 = [[UILabel alloc] init];
    [self.imageback addSubview:_lable3];
    [_lable3 release];

}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    _imageback.frame = CGRectMake(5, 5, 365, 150);
    _imageback.backgroundColor = [UIColor clearColor];
    
    _lable1.frame = CGRectMake(10, 5, 350, 40);
    _lable1.backgroundColor = [UIColor clearColor];
    _lable1.font = [UIFont systemFontOfSize:25];
    
    _lable2.frame = CGRectMake(10, 60, 350, 50);
    _lable2.backgroundColor = [UIColor clearColor];
    _lable2.font = [UIFont systemFontOfSize:18];
    _lable2.numberOfLines = 2;
    
    _lable3.frame = CGRectMake(10, 120, 350, 20);
    _lable3.backgroundColor = [UIColor clearColor];
    _lable3.font = [UIFont systemFontOfSize:18];
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
